<?php
class string extends MySQL_Connector {
	public static function clean_var($var, MySQLi $mysqli) {
		if (get_magic_quotes_gpc()) {
			$var = stripslashes($var);
		}
		$var = $mysqli->real_escape_string($var);
		return $var;
	}
	
	public static function get_in_header_style($title) {
		return "<font size=\"+3\" face=\"Arial, Helvetica, sans-serif\">".$title."</font><br /><br />";
	}
	
	public static function are_variables_not_empty(Array $vars) {
		foreach ($vars as $value) {
			if (empty($value)) {
				return false;
			}
		}
		return true;
	}
}
?>